//
//  WBDemoViewController.swift
//  weibo
//
//  Created by 林帆 on 2017/3/31.
//  Copyright © 2017年 林帆. All rights reserved.
//

import UIKit

class WBDemoViewController: WBBaseViewController {

    
    override func viewDidLoad() {
        super.viewDidLoad()
        title = " \(navigationController?.childViewControllers.count ?? 0) "
    }
   //MARK: - 监听方法
    @objc fileprivate func showNext() {
        let vc = WBDemoViewController()
        navigationController?.pushViewController(vc, animated: true)
    }
}

extension WBDemoViewController  {
    
    override func setupTableView() {
        super.setupTableView()
         navItem.rightBarButtonItem = UIBarButtonItem(title: "下一个", fontSize: 16, width: 60, target: self, action: #selector(showNext))
    }
}
